package com.growthsee.framework.config.wechat;

import com.alibaba.fastjson.JSONArray;
import lombok.Data;

import java.io.Serializable;

@Data
public class WxMpUser implements Serializable {
    private static final long serialVersionUID = 5788154322646488738L;
    private Boolean subscribe;
    private String openId;
    private String nickname;
    private String sexDesc;
    private Integer sex;
    private String language;
    private String city;
    private String province;
    private String country;
    private String headImgUrl;
    private Long subscribeTime;
    private String unionId;
    private String remark;
    private Integer groupId;
    private Long[] tagIds;
    private String[] privileges;
    private String subscribeScene;
    private String qrScene;
    private String qrSceneStr;

    public static WxMpUser fromJson(String json) {
        return JSONArray.parseObject(json,WxMpUser.class);
    }
}
